/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package atest;

import java.util.Random;
import tools.StringUtil;
import tools.data.output.MaplePacketLittleEndianWriter;

/**
 *
 * @author t
 */
public class test {
    public static void main(String[] args){
        try{
        MaplePacketLittleEndianWriter lew = new MaplePacketLittleEndianWriter();
        lew.write(4);
        System.out.println("write 4:"+lew.getPacket());
        lew.writeLong(-1);
        System.out.println(lew.getPacket());
        lew.writeInt(255);
        System.out.println(lew.getPacket());
        }catch(Exception e){}
    }
    
    private int random(int max){
        Random ran = new Random();
        int rand = ran.nextInt(max);
        return rand;
    }
    
}
